<div id="page">
<div id="shadowleft"></div>
<div id="pagebody">

<div id="header">
<div>
    <a href="/" >
        <img id="logo" title="Lingomoto" src="bilder/logo.png" border="0" />
    </a>
</div>
    <div id="header1"></div>

<?php
require 'language_related_variables.php';
$site_language=$_REQUEST['la'];
$LRV=filter_by_language($site_language);
    echo '<div id="header2">';
    echo '<div id="language">';
    echo '<a href="kontakt.html">Kontakt</a>';
    echo '&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;';
    echo 'Sprache:';
?>

<select id="mySelect" onchange="if(this.options[this.selectedIndex].value != ''){window.top.location.href=this.options[this.selectedIndex].value + '?lang=' + this.options[this.selectedIndex].value.substr(7,2)}">';
<?php
    echo '<option value="http://de.lingomoto.com">Deutsch&nbsp;</option>';
    echo '<option value="http://lingomoto.com/'. $langen . '">Englisch&nbsp;</option>';
    echo '<option value="http://ru.lingomoto.com/'. $langru . '">Russisch&nbsp;</option>';
    echo '<option value="http://es.lingomoto.com/'. $langes . '">Spanisch&nbsp;</option>';
    echo '</select>'; 

    echo '</div>';
    echo '<div>';

if ( $_SESSION['logini'] == true )
{
echo'<div id="logout">';                                                                              
    echo "<a href='logout.html'>Logout</a>";
echo '</div>';
}
else 
{
    require_once ('loginformulartop.html'); 
}
?>
</div>
</div>

</div>

                  